<template>
  <h1>{{message}}</h1>
  <button @click="resetMsg">翻转</button>
</template>

<script>
	export default {
		name: "EventHandling",
    data() {
			return {
				message: 'hello vue.js'
      }
    },
    methods: {
			resetMsg() {
				this.message = this.message.split('').reverse().join('');
      }
    }
	}
</script>

<style scoped>

</style>